<form class="form-horizontal form-validate form-modal" method="post" action="{:url('editLevel')}">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">{$agentInfo['id'] > 0?'编辑':'添加'}{$levelInfo['level_name']}区域</h4>
            </div>
            <div class="modal-body">
                <div class="form-group region_box ">
                    <label class="col-sm-3 control-label">省{$levelInfo['identification'] == 'city_agent' || $levelInfo['identification'] == 'district_agent'?'/市':''}{$levelInfo['identification'] == 'district_agent'?'/区':''}
                       </label>
                    <div class="col-sm-9 must">
                        <select name="province" id="province" style="width:120px;"  class="region_sel" nextsel="city|district" sel_val="100000|{$agentInfo['province']}">
                            <option value="">请选择</option>
                        </select>
                        {if $levelInfo['identification'] == 'city_agent' || $levelInfo['identification'] == 'district_agent'}
                        <select name="city" id="city" style="width:120px;"  class="region_sel" nextsel="district" sel_val="{$agentInfo['province']}|{$agentInfo['city']}">
                            <option value="">请选择</option>
                        </select>
                        {/if}
                        {if $levelInfo['identification'] == 'district_agent'}
                        <select name="district" id="district" style="width:120px;"  class="region_sel" sel_val="{$agentInfo['city']}|{$agentInfo['district']}">
                            <option value="">请选择</option>
                        </select>
                        {/if}
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <input type="hidden" value="{$user_id}" name="user_id" />
                <input type="hidden" value="{$levelInfo['level_id']}" name="level_id" />
                <button type="submit" class="btn btn-primary" data-loading-text="保存中..." disabled>保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</form>
